GetEmail Method

Syntax

Context.Security.GetEmail as C ()

Context.Security.GetEmail as C (UserName as C)

Arguments

UserNameCharacter

Optional. The user name for which the email address is to be retrieved. If no user name is used then the email address for the current user will be retrieved.

Returns

resultCharacter

Returns the email address for a user, if any.

Description

Gets the email address of the specified user.

Discussion

Context.Security.GetEmail() gets the email address of the specified user, or when no user is specified, gets the email address of the current user. Check Context.Security.CallResult.Success before using the return value.